package com.linran.gclearn.jvm.debugtool;

/**
 * -Xmx10m -XX:+UseSerialGC -XX:-UseCompressedOops
 */
public class JHSDBTestCase {
    static class Test {
        static ObjectHolder staticObj = new ObjectHolder();
        ObjectHolder instanceObj = new ObjectHolder();
        void foo() {
            ObjectHolder localObj = new ObjectHolder();
            System.out.println("done"); //这里设置一个断点
        }
    }

    private static class ObjectHolder{
        private String name;
        private Integer age;
    }

    public static void main(String[] args) {
        Test test = new Test();
        test.foo();
    }
}
